I am trying to create a Java agent that will convert an XML SVG graphic into a JPEG and save the JPEG into a notes document.
I have imported the batik classes into the agent and I can successfully use them up to a point. However, the agent eventually fails with this error:
java.lang.NoSuchMethodError: org.w3c.dom.DOMImplementation: method createDocument(Ljava/lang/String;Ljava/lang/String;Lorg/w3c/dom/DocumentType;)Lorg/w3c/dom/Document; not found
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
at SaveAsJPEG.createJPEG(SaveAsJPEG.java:26)
at JavaAgent.NotesMain(JavaAgent.java:23)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(NotesThread.java:208)
Having looked at the batik FAQ (
http://xml.apache.org/batik/faqs.html), my guess is that Notes is using an older version of the org.w3c.xxx packages somewhere, but I can't figure out where. The only Notes jar file I can see that contains them is XML4J.jar, but I have not added that to my classpath or ini file.
Anyone got any suggestions?
Thanks,
Karl